//
//  NewsEntity.h
//  iCarStyle
//
//  Created by liunian on 13-9-9.
//  Copyright (c) 2013年 liunian. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>

#if NS_BLOCKS_AVAILABLE
typedef void (^NewsBlock)(NSArray *items);
#endif

@interface NewsEntity : NSManagedObject

@property (nonatomic, retain) NSNumber * cid;
@property (nonatomic, retain) NSString * content;
@property (nonatomic, retain) NSString * date;
@property (nonatomic, retain) NSString * desc;
@property (nonatomic, retain) NSString * icon;
@property (nonatomic, retain) NSNumber * nid;
@property (nonatomic, retain) NSString * title;
@property (nonatomic, retain) NSString * link;
@property (nonatomic, retain) NSDate * create;
@property (nonatomic, retain) NSNumber *favorit;
+ (void)responseWithURL:(NSString *)url callback:(NewsBlock)block;
@end
